package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.DeviceRepairHistory;
import com.zhijian.medical.entity.vo.request.DeviceRepairHistorySearchVo;
import com.zhijian.medical.entity.vo.response.DeviceRepairHistoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceRepairHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeviceRepairHistory record);

    int insertSelective(DeviceRepairHistory record);

    DeviceRepairHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DeviceRepairHistory record);

    int updateByPrimaryKey(DeviceRepairHistory record);

    int count(DeviceRepairHistorySearchVo deviceRepairHistorySearchVo);

    List<DeviceRepairHistoryVo> selectList(DeviceRepairHistorySearchVo deviceRepairHistorySearchVo);

    DeviceRepairHistoryVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<DeviceRepairHistory> entities);

    /**
     * 查询出某天最新数据的code
     *
     * @return
     */
    String selectMaxCodeByDay(String day);
}